package matlab;

public class TextVariable extends AbstractVariable {

	String value;
	
	public TextVariable(String name, String value) {
		super(name);
		this.value = value;
	}
	
	@Override
	public int[] getDimensions() {
		return new int[] { 1, value.length() };
	}
	
	@Override
	public ArrayType getType() {
		return ArrayType.CHAR;
	}

	@Override
	public boolean isText() {
		return true;
	}
	
	@Override
	public String getText() {
		return value;
	}
}
